package cn.nubia.admin.application.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/7/14.
 */
public class GeneralQuery extends PageQueryParam {


    private String generalDateRange;

    private Date generalDates;

    private Date GeneralDatee;

    private Integer generalType;

    public String getGeneralDateRange() {
        return generalDateRange;
    }

    public void setGeneralDateRange(String generalDateRange) {
        this.generalDateRange = generalDateRange;
        if(this.generalDateRange!=null&&!"".equals(this.generalDateRange)){
            this.setGeneralDates(DateUtil.getBeginDateFromRange(this.generalDateRange));
            this.setGeneralDatee(DateUtil.getEndDateFromRage(this.getGeneralDateRange()));
        }
    }

    public Date getGeneralDates() {
        return generalDates;
    }

    public void setGeneralDates(Date generalDates) {
        this.generalDates = generalDates;
    }

    public Date getGeneralDatee() {
        return GeneralDatee;
    }

    public void setGeneralDatee(Date generalDatee) {
        GeneralDatee = generalDatee;
    }

    public Integer getGeneralType() {
        return generalType;
    }

    public void setGeneralType(Integer generalType) {
        this.generalType = generalType;
    }
}
